﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntDoubleStringChoises
{
    class Program
    {
        static void Main(string[] args)
        {
            string choice = Console.ReadLine();
            string input = Console.ReadLine();
            int inputInt;
            double inputDouble;
            switch (choice)
            {
                case "string":
                    Console.WriteLine(input + "*");
                    break;
                case "int":
                    inputInt = int.Parse(input);
                    Console.WriteLine("{0}", inputInt + 1);
                    break;
                case "double":
                    inputDouble = double.Parse(input);
                    Console.WriteLine("{0}", inputDouble + 1.0);
                    break;
                default:
                    break;
            }
        }
    }
}
